package windbell.domain.risk.proxy;

import edu.fudan.mylang.pf.ProxyTarget;
import windbell.domain.risk.proxy.BaseHasSimplePyProxy;
import windbell.domain.risk.proxy.IHasRiskCheckTemplateItemsProxy;
import windbell.domain.risk.proxy.RiskCheckTemplateAction;

@ProxyTarget("windbell.domain.risk.RiskCheckTemplate")
public class RiskCheckTemplateProxy extends BaseHasSimplePyProxy implements IHasRiskCheckTemplateItemsProxy {
  public RiskCheckTemplateProxy() {
    this.setClazzName("windbell.domain.risk.RiskCheckTemplate");
  }
  
  private String status;
  
  public void setStatus(final String status) {
    this.status = status;
  }
  
  public String getStatus() {
    return this.status;
  }
  
  public Boolean isActionValid(final RiskCheckTemplateAction action) {
    return RiskCheckTemplateManager.isActionValid(action,status);
  }
}
